﻿using System.Xml;

namespace Bingo.Core
{
    public static class XmlExtension
    {
        public static XmlDocument Create(this XmlDocument input, string path)
        {
            XmlDocument xml = new XmlDocument();
            xml.Load(path);
            return xml;
        }

        public static string GetAttributeValue(this XmlNode input, string attribute)
        {
            return input.Attributes[attribute].Value;
        }
    }
}